You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/^https' AND `pid` = 0 AND `status` = 1 ORDER BY `sort_id` ASC' at line 1
SELECT `id`, `pid`, `lang_code`, `category_name` AS `topic`, `sort_id`, `status` FROM categorys WHERE `lang_code` = 'www/apps/smarty/tpl/default/js/'+(/^https' AND `pid` = 0 AND `status` = 1 ORDER BY `sort_id` ASC